package conson.tech.manage.coupons.entity.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import conson.tech.core.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * ClassName: SettlementReport
 * Description: 财务结算报表
 * Author: ZYF
 * Date: 2020/07/20
 * Version: 1.0
 */
@Data
@TableName("settlement_report")
public class SettlementReport {
    private static final long serialVersionUID = 4327659821954015806L;

    /**主键id*/
    private Long id;

    /**使用商户id*/
    private Long shopId;

    /**使用商户*/
    private String shopName;

    /**年月*/
    private String yMonth;

    /**优惠券批次ID*/
    private Long batchId;

    /**批次名称*/
    private String batchName;

    /**发券主体*/
    private Integer provider;

    /**费用归属*/
    private Integer providerCode;
    /**费用归属占比*/
    private Integer costRatio;

    /**使用数量*/
    private Integer useNum;

    /**核销金额*/
    private BigDecimal writtenMoney;

    /**返还数量*/
    private Integer refundNum;

    /**返还金额*/
    private BigDecimal refundMoney;

    /**结算状态 1-已结算 0-未结算*/
    private Integer status;

    /**操作人*/
    private String createBy;

    /**操作时间*/
    private LocalDateTime createTime;

    /**更新时间*/
    private LocalDateTime updateTime;

    /**更新人*/
    private String updateBy;

    /**申请人id*/
    private Long applyId;



}
